package com.suixinsanren.design.command.demo02;

public class Fan {

    private String name;
    private String location;

    public Fan(String name, String location) {
        this.name = name;
        this.location = location;
    }

    public void open(){
        System.out.println(location + "的" + name + "已打开");
    }

    public void close(){
        System.out.println(location+"的"+name+"关闭");
    }
}
